<div class="row">
  <div id="breadcrumb" class="col-md-12">
    <ol class="breadcrumb">
      <li><a ui-sref="layout.main">主页</a></li>
      <li><a href="javascript:;">考勤审核</a></li>
    </ol>
  </div>
</div>

<div class="well" style="background-color: #FFFFFF;">
	<div class="row">
		<div class="col-xs-2">
			<button class="btn btn-block btn-success" type="button" ng-click="showDetail()" ng-disabled="(map.att_form[ selectId.id ].att_form_status == 2)">
			  审核选中项
			</button>
		</div>
		<div class="col-xs-2">
			<button class="btn btn-block btn-info" type="button" ng-click="showDetail()" >
			  <i class="fa fa-eye"></i> 查看选中项
			</button>
		</div>
	</div>
	<hr />
	<div class="row">
		<div class="col-xs-12">
			<table class="table table-striped table-hover" >
				<thead>
					<tr>
						<th>&nbsp;</th>
						<th>
							<select class="form-control" ng-model="search.att_type" ng-options="item.id as item.att_type_name for item in att_type">
								<option value="">考勤类型</option>
							</select>
						</th>
						<th>状态</th>
						<th>检查人</th>
						<th>周次</th>
						<th>提交时间</th>
					</tr>
				</thead>
				<tbody>
				<tr style="position: relative;" class="item animated slideInRight noneOut"
				  ng-repeat="att_formItem in (tempatt_form = (att_form | filter: search ) | limitTo : itemsPerPage : itemsPerPage * (bigCurrentPage - 1) ) | orderBy : ['att_form_time','-att_form_status'] : true ">
					<!-- <tr ng-repeat="att_formItem in att_form | orderBy:att_form_status | orderBy:att_form_time"> -->
						<td>
							<input type="radio" name="ids" ng-value="{{att_formItem.id}}" ng-model="selectId.id" />
						</td>
						<td ng-bind="att_formItem.att_type | id2name : map.att_type : 'att_type'"></td>
						<td>
							<span ng-bind="att_formItem.att_form_status | status2name : ['' ,'待审核','已审核']"
										ng-class="{'label':true, 'label-primary' : (att_formItem.att_form_status === 1),'label-default' : (att_formItem.att_form_status === 2)}"></span>
						</td>
						<td ng-bind="att_formItem.att_form_usr | id2name : map.usr : 'usr'"></td>
						<td ng-bind="att_formItem.att_form_time | date2weeks : att_formItem.att_form_term"></td>
						<td ng-bind="att_formItem.att_form_time | date : 'yyyy-MM-dd hh:mm:ss'"></td>
					</tr>
				</tbody>
			</table>
		</div>
	</div>
	<div class="row">
	  <div class="col-xs-6">
	    总共有<span class="text-warning" ng-bind="tempatt_form.length"></span>条记录 每页显示<input type="text" style="width: 30px;text-align: center;" ng-model="itemsPerPage" />条记录
	  </div>
	  <div class="col-xs-6">
	    <uib-pagination previous-text="上一页" next-text="下一页" total-items="tempatt_form.length" items-per-page="itemsPerPage" ng-model="bigCurrentPage" max-size="5" class="pagination-sm" boundary-link-numbers="true" rotate="true"></uib-pagination>
	  </div>
	</div>
</div>